package com.mng.AOPanno;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTest {
  @Test
  public void test1(){
    ApplicationContext context = new ClassPathXmlApplicationContext("AopConfig.xml");
    User user = context.getBean("user", User.class);
    user.add();
  }
}
